package com.chinafree.business.model.enumeration;

public enum SalaryUnitEnum {


    DISCUSSION(0, "不限制"),
    HOUR(1, "应届"),
    DAY(2, "1-3"),
    MONTH(3, "3-5"),
    YEAR(4, "5-10"),
    tEN(5, "10年以上"),
    ;


    private Integer id;
    private String unit;

    SalaryUnitEnum(Integer id, String unit) {
        this.id = id;
        this.unit = unit;
    }

    public Integer getId() {
        return id;
    }

    public String getUnit() {
        return unit;
    }

    public static String getSalaryUnitById(Integer id) {
        for (SalaryUnitEnum salaryUnitEnum : SalaryUnitEnum.values()) {
            if (salaryUnitEnum.getId().equals(id)) {
                return salaryUnitEnum.getUnit();
            }
        }
        return null;
    }



    
    public static String getSalaryIdByDay(Integer day) {
        int year = day/365;

        return null;
    }
}
